package com.jt.demo53;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Test {
    public static void main(String[] args) {
        ApplicationContext a = new AnnotationConfigApplicationContext(Spring.class);
//        Pig bean = a.getBean(Pig.class);
//        bean.hello();
        App bean = a.getBean(App.class);
        bean.As();

    }
}
